﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Edog2487
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static int Main(string[] args)
        {
            Lib.ProcessManager.KillOthers();
           

            if (args.Length >= 1)
            {
                AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit);
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1(args));
            }

            return 0;


        }

        static void OnProcessExit(object sender, EventArgs e)
        {
            Console.WriteLine("应用程序退出中...");
        }
    }
}
